From 821432ac4e9548dd339b362af582fb4071a06448 Mon Sep 17 00:00:00 2001 From: Richard Hult Date: Sun, 4 Nov 2007 18:11:22 +0000 Subject: [PATCH] Make shift tab work with unicode layouts (e.g. all Leopard layouts), fixes 2007-11-04 Richard Hult * gdk/quartz/gdkkeys-quartz.c: (maybe_update_keymap): Make shift tab work with unicode layouts (e.g. all Leopard layouts), fixes bug #493404. svn path=/trunk/; revision=18967 --- ChangeLog | 6 ++++++ gdk/quartz/gdkkeys-quartz.c | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index 9b8a532c9d..6d207cf92f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-11-04 Richard Hult + + * gdk/quartz/gdkkeys-quartz.c: (maybe_update_keymap): Make shift + tab work with unicode layouts (e.g. all Leopard layouts), fixes + bug #493404. + 2007-11-03 Richard Hult * gtk/gtkclipboard-quartz.c: (clipboard_owner_destroyed), diff --git a/gdk/quartz/gdkkeys-quartz.c b/gdk/quartz/gdkkeys-quartz.c index dd8b63e292..7a2448b50d 100644 --- a/gdk/quartz/gdkkeys-quartz.c +++ b/gdk/quartz/gdkkeys-quartz.c @@ -322,6 +322,12 @@ maybe_update_keymap (void) break; } } + + /* Special-case shift-tab since GTK+ expects + * GDK_ISO_Left_Tab for that. + */ + if (found && p[j] == GDK_Tab && modifiers[j] == shiftKey) + p[j] = GDK_ISO_Left_Tab; if (!found) p[j] = gdk_unicode_to_keyval (uc); -- 2.30.2